import request from '@/utils/request'

const baseUrl = process.env.VUE_APP_BASE_API + '/case'

export function listCase() {
  return request({
    url: baseUrl,
    method: 'get'
  })
}

export function listMyCase() {
  return request({
    url: baseUrl,
    method: 'get'
  })
}

export function insertCase(data) {
  return request({
    url: baseUrl,
    method: 'post',
    data
  })
}

export function updateCase(data) {
  return request({
    url: baseUrl,
    method: 'put',
    data
  })
}
